<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>作业6</title>
</head>
<body>
<script>
  function Phone(brand,price,color){
      this.brand=brand;
      this.price=price;
      this.color=color;
      this.call=function () {
          console.log("正在使用价格为"+this.price+"元"+this.color+"的"+this.brand+"打电话");
      }
      this.sendMessage=function (){
          console.log("正在使用价格为"+this.price+"元"+this.color+"的"+this.brand+"发短信");
      }
  };
  const phone = new Phone("小米手机",3998,"黑色");
  phone.call();
  phone.sendMessage();
</script>
</body>
</html>